﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Login.ascx.cs" Inherits="SAS.WebSite.VisualControls.Other.Login" %>
<center><img id="BigLogo" src="../Images/dpm_login_super.png" /></center>
<script type="text/javascript" src="/Scripts/Misc/li_mdh.js"></script>
<div id="LoginWrapper"><center><div id="LoginContainer"><div id="LoginMessage"><asp:Literal ID="litLOMessage" runat="server"></asp:Literal></div>
    <table border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td class="label">Username</td>
            <td><asp:TextBox ID="txtUserName" runat="server" AutoCompleteType="Email" CssClass="loginbox textbox"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="label">Password</td>
            <td><input type="password" id="txtPassword" runat="server" class="passwordbox textbox" onkeypress="capLock(event)" /><input type="hidden" id="hidPass" runat="server" class="hidPass" enableviewstate="true"/></td>
        </tr>
        <tr>
            <td colspan="2"><asp:CheckBox ID="chkRememberMe" runat="server" Text="Remember Me" CssClass="check" />
            <input type="hidden" id="hidHash" runat="server" class="hidHash" enableviewstate="true" />
            <input type="hidden" id="hidSecret" runat="server" class="hidSecret" enableviewstate="true" />
                <asp:Button ID="btnLogin" runat="server" CssClass="libutton" Text="Login"  
                 onclick="btnLogin_Click" /></td>
        </tr>    
        <tr>
            <td colspan="2"><a href="#" id="lnkPassRecover" class="link recover">[Forgot your password?]</a><div id="divWarning"style="visibility:hidden">Notice: Caps Lock is on.</div></td>
        </tr>    
    </table>
    </div></center>
</div>
<div id="recoverPassForm" title="Password Recovery">
    <table class="pop_table">
        <tr>
            <td rowspan="14">&nbsp;&nbsp;</td>                
            <td colspan="2"></td>
            <td rowspan="14" width="50px">&nbsp;&nbsp;</td>                
        </tr>
        <tr>
            <td colspan="5"><h1>So... We heard you forgot something.</h1>
            </td>
        </tr>
        <tr>
            <td colspan="5"><br />
            </td>
        </tr>
        <tr>
            <td colspan="5"><span class="form_lbl">No worries.  We understand.  These programmers now-and-days are always trying to stretch the limits of our memory, patience, and sanity with their complicated "Algorithms".  We've got you covered though.  We can create a new (temporary) password for you and send it to your email address.<br /><br />If that sounds ok with you, simply enter your email address below and click the Recover Button.</span>
            </td>
        </tr>
        <tr>
            <td colspan="5"><br />
            </td>
        </tr>
        <tr>
            <td><div class="subtitle">Email:</div></td>                
            <td class="value"><input type="text" class="form_txt" id="rcvr_email" jVal="{valid:/^([a-zA-Z0-9.!#$%&'*+-/=?\^_`{|}~-]+@[a-zA-Z0-9_-]+(?:\.[a-zA-Z0-9_-]+)*)?$/, message:'Invalid'}"
                jValKey="{valid:/[a-zA-Z0-9._%+-@]/, cFunc:'alert', cArgs:['Email Address: '+$(this).val()]}"/></td>                
        </tr>
        <tr>
            <td colspan="5"><br />
            </td>
        </tr>
        <tr>
            <td colspan="5"><span class="form_lbl">Please click the 'Recover' button to confirm this action.</span>
            </td>
        </tr>
        <tr>
            <td colspan="2"><br />
            </td>
        </tr>
        <tr>
            <td colspan="2"><div class="button_wrapper"><button id="btn_rcvr_send" class="sendrecover ui-button-corner-all">Recover</button>&nbsp;&nbsp;<button id="btn_rcvr_cancel" class="ui-button-corner-all">Cancel</button></div></td>                
        </tr>
        <tr>
            <td colspan="2"><br />
            </td>
        </tr>
    </table>
                
</div>
